package com.business.student.mapper;

import com.business.exam.domain.ExamPaperAnswer;
import com.business.exam.mapper.BaseMapper;
import com.business.student.domain.ExamPaperAnswerPageVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface ExamPaperAnswerMapper extends BaseMapper<ExamPaperAnswer> {


    ExamPaperAnswer getByPidUid(@Param("pid") Integer paperId, @Param("uid") Integer uid);

    /**
     * 查询考试成绩列表
     * @param requestVM
     * @return
     */
    List<ExamPaperAnswer> studentPage(ExamPaperAnswerPageVM requestVM);

    /**
     * 查询考试成绩列表
     * @param requestVM
     * @return
     */
    List<ExamPaperAnswer> studentPageForAdmin(ExamPaperAnswerPageVM requestVM);


    /**
     * 查询答题次数
     * @return
     */
    Integer selectExamAnswerCount(Map<String,Object> paramMap);

    /*  List<KeyValue> selectCountByDate(@Param("startTime") Date startTime, @Param("endTime") Date endTime);


    List<ExamPaperAnswer> adminPage(com.mindskip.xzs.viewmodel.admin.paper.ExamPaperAnswerPageRequestVM requestVM);*/
}
